package com.woniuxy.oa.dao;

import com.woniuxy.oa.entity.NoticeAndImge;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

/**
 * @author Mr X
 */
public interface NoticeAndImgeDAO {
    /**
     * 增加公告图片
     *
     * @param noticeAndImge
     */
    @Insert("insert into oa_notice_imge values(#{id},#{noticeId},#{url},#{status})")
    public void add(NoticeAndImge noticeAndImge);

    /**
     * 根据公告ID删除图片
     *
     * @param noticeId
     */
    @Delete("delete from oa_notice_imge where noticeid=#{noticeId}")
    public void delete(String noticeId);
}
